<?php
class admin_infoController extends adminController{

    //首页
    public function index() {
        //获取当前APP配置
        $this->appconfig=appConfig('statistics');
        $this->show();  
    }

    public function save() {
        $token=$_POST['token'];
        $this->alert_str($token,'',true);
        //写入配置
        $data=array();
        $data['token']=$token;
        if( save_config('statistics', $data) ){
            $this->msg('APP配置成功！');
        }else{
            $this->msg('APP配置失败，请检查本APP配置文件是否有写入权限！',0);
        }
    }
}